# coding:utf-8

from . import api
import logging
from flask import current_app
from launch import models, db
from launch.api_1_0 import verify_code


@api.route('/index')
def index():
    # 日志级别 高低级---自上而下---级别增高
    # logging.error("")  # 错误级别
    # logging.warn("")  # 警告级别
    # logging.info("")  # 消息提示级别
    # logging.debug()  # 调试级别
    current_app.logger.error("error msg")
    current_app.logger.warn("warn msg")
    current_app.logger.info("info msg")
    current_app.logger.debug("debug msg")
    return 'index page!'
